package com.qyhl.webtv.module_news.news.smallvideo.homelist;


import com.qyhl.webtv.commonlib.entity.news.CatchSmallBean;

import java.util.List;

/**
 * Created by qyhl on 2018/4/24.
 */

public class SmallVideoListPresenter implements SmallVideoListContract.SmallVideoListPresenter {
    private SmallVideoListActivity mView;
    private SmallVideoListModel mModel;

    public SmallVideoListPresenter(SmallVideoListActivity mView) {
        this.mView = mView;
        this.mModel = new SmallVideoListModel(this);
    }

    @Override
    public void getVideoList(String newsId) {
        mModel.getVideoList(newsId);
    }

    @Override
    public void setVideoList(List<CatchSmallBean.NewsDetail> beanList) {
        mView.setVideoList(beanList);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }

    @Override
    public void count(String newsId) {
        mModel.count(newsId);
    }
}
